<template>
  <div class="movie">
    <h2>Movie</h2>
    <p>Count的值是{{ count }},总价格是：{{ totalPrice }}</p>
  </div>
</template>

<script>
import { mapState, mapGetters } from "vuex";
export default {
  name: "Movie",
  computed: {
    ...mapState("movie", ["count"]),
    ...mapGetters("movie", ["totalPrice"]),
  },
};
</script>

<style scoped>
.movie {
  background-color: burlywood;
}
</style>
